{* Show messages *} 
{if $messages != null && $messages|@count > 0}
	<p>
		{foreach from=$messages item="message"}
			{if $message.type == "error"}
				<span class="error">{$message.text}</span><br/>
			{else}
				{$message.text}<br/>
			{/if}
		{/foreach}
	</p>
{/if}    